#include "screenshottool.h"
#include "singleapplication.h"

int main(int argc, char *argv[])
{
    SingleApplication a(argc, argv);
    a.setQuitOnLastWindowClosed(false);
    if(!a.isShowing())
    {
        ScreenShotTool w;
        w.hide();

        a.installNativeEventFilter(&w);

        return a.exec();
    }
    return 0;
}
